<div class="col-lg-1"></div>
<div class="col-lg-11">
	<%= form_for(@antenna) do |f| %>
	  
	  <% if @antenna.errors.any? %>
	  	<div class="alert alert-danger col-md-9">
	  		<b>Foram encontrados alguns erros:</b><br /> 
	  		<ul>
			      <% @antenna.errors.full_messages.each do |msg| %>
			        <li><%= msg %></li>
			      <% end %>
	      	</ul>
	  	</div>
	  <% end %>
	  
	  <div class="form-group">
	      <label for="description" class="col-sm-9 control-label">Descrição</label>
	      <div class="col-sm-9">
	      	<%= f.text_field :description, id: :description, class: 'form-control'%>
	      </div>
	  </div>
	  
	  <div class="form-group">
	      <label for="reader" class="col-sm-9 control-label">Leitor</label>
	      <div class="col-sm-9">
	      	<%= f.select :reader_id, @readers.map{|r| [r.description, r.id]}, {}, {:class=>"form-control"} %>
	      </div>
	  </div>
	  
	  <div class="form-group">
	      <label for="tx_rx_port" class="col-sm-9 control-label">Porta(tx/rx)</label>
	      <div class="col-sm-9">
	      	<%= f.select :tx_rx_port, [[1], [2], [3], [4]], {},{:class=>"form-control"} %>
	      </div>
	  </div>
	  
	  <div class="form-group">
	      <label for="power" class="col-sm-9 control-label">Potência</label>
	      <div class="col-sm-9">
	      	  <%= f.text_field :power, id: :power, class: 'form-control'%>
	      </div>
	  </div>
	  
	  <div class="form-group">
	      <label for="protocol" class="col-sm-9 control-label">Protocolo</label>
	      <div class="col-sm-9">
	      	  <%= f.text_field :protocol, id: :protocol, class: 'form-control'%>
	      </div>
	  </div>
  
	  <div class="form-group">
	      <div class="col-sm-9">
	      	<br />
	      	<%= f.submit 'Salvar', :class => 'btn btn-block btn-primary'%>  
	      </div>
	  </div>
<% end %>
</div>